package com.mac.hosp_pre.admin.feign;

import com.mac.hosp_pre.reply.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "hosp-admin-service",contextId = "DictClientFeign")
public interface DictClientFeign {
    @GetMapping("/admin/hosp/dict/getName/{value}")
    R<String> getName(@PathVariable("value") String value);

    @GetMapping("/admin/hosp/dict/getName/{dictCode}/{value}")
    R<String> getName(@PathVariable("dictCode") String dictCode, @PathVariable("value") String value);
}
